package cn.tedu.ezhaung_project.controller;


import cn.tedu.ezhaung_project.mapper.EffectpicCategoryMapper;
import cn.tedu.ezhaung_project.pojo.vo.EffectpicCategoryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/effectpicCategory")
public class EffectpicCategoryController {
    @Autowired(required = false)
    EffectpicCategoryMapper mapper;
    @RequestMapping("/homepageSelect")
    public List<EffectpicCategoryVO> homepageSelect(){
        System.out.println(mapper.homepageSelect());
        return mapper.homepageSelect();
    }
}